package com.sun.domain;

public enum ResultCode {
    ONE(1),
    ZERO(0),
    SUCCESS(200),
    FAIL(-1),
    UNAUTHORIZED(-401),
    NOT_FOUND(-404),
    INTERNAL_SERVER_ERROR(-500);

    private final int code;

    private ResultCode(int code) {
        this.code = code;
    }

    public int code() {
        return this.code;
    }
}
